package net.muchine.web.front.controller.sample;

import java.util.Map;

import org.springframework.stereotype.Component;

@Component("/hello-simple")
public class HelloController extends SimpleController {
	public HelloController() {
		this.setRequiredParams(new String[] {"name"});
		this.setViewName("/hello");
	}

	@Override
	public void control(Map<String, String> params, Map<String, Object> model) throws Exception {
		model.put("message", "Hello " + params.get("name"));
	}
}
